DirMonitor - a Directory Monitor Windows Service

Author:   chicks
Version:  1.0
Date:     Sept, 2005
License:  Public Domain
Language: PowerBASIC 7.x

Will monitor up to 16 directories and perform a specified action when a file
is added to a monitored directory.

Actions are specified in DirMonitor.ini, in the [Directories] section.
Specify the directory first, followed by "=", followed by the action:

[Directories]
c:\temp\in="c:\program files\chicks\DirMonitor\fixpdf.cmd"


Install the service:

    dirmonitor.exe -install

Start the service:

    net start sDirMon

Stop the service:

    net stop sDirMon

Uninstall the service:

    dirmonitor.exe -uninstall

To make the service start automatically, use the Windows Administrative Tools
in the Control Panel:

    Services; Directory Monitor Service; Startup type: Automatic

Note that actions will run as the System user, and will have no user
interface.  Therefore, do not run GUI applications of any kind, or any
applications that require user input.

DirMonitor was written primarily as a front end for tools like pdftk and
GhostScript, for manipulating and printing PDF files.  You will need
Administrator access to your PC to install and run DirMonitor.

Make sure that directories to be monitored exist before starting sDirMon.

After editing DirMonitor.ini, restart the service for changes to take effect:

    net stop sDirMon
    net start sDirMon

